/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2021-09-03 14:09:44
 * @LastEditors: sueRimn
 * @LastEditTime: 2021-09-03 14:09:44
 */
'use strict';
module.exports = () => {
  return async (ctx, next) => {
    ctx.socket.emit('res', 'connected!');
    await next();
    console.log('disconnection!');
  };
};